package com.csx.saas.platform.tenant.dto;

import com.csx.saas.platform.tenant.enumeration.TenantChannelEnum;
import com.csx.saas.platform.tenant.enumeration.TenantStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 企业
 * </p>
 *
 * @author ChenSongXin
 * @since 2021-02-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "TenantPageQuery", description = "企业")
public class TenantPageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 租户登录账户
     */
    @ApiModelProperty(value = "租户登录账户")
    private String account;
    /**
     * 租户登录密码
     */
    @ApiModelProperty(value = "租户登录密码")
    private String password;
    /**
     * 渠道\n#{SYSTEM:平台开通;REGISTER:注册}
     */
    @ApiModelProperty(value = "渠道\n#{SYSTEM:平台开通;REGISTER:注册}")
    private TenantChannelEnum channel;
    /**
     * 租户开始时间
     */
    @ApiModelProperty(value = "租户开始时间")
    private LocalDateTime startTime;
    /**
     * 有效期 
     * 为空表示永久
     */
    @ApiModelProperty(value = "有效期")
    private LocalDateTime expirationTime;
    /**
     * 企业简介
     */
    @ApiModelProperty(value = "企业简介")
    private String describe;
    /**
     * 状态\n#{NORMAL:正常;LOCKED:锁定;EXPIRE:到期}
     */
    @ApiModelProperty(value = "状态\n#{NORMAL:正常;LOCKED:锁定;EXPIRE:到期}")
    private TenantStateEnum state;
    /**
     * 版本编号
     */
    @ApiModelProperty(value = "版本编号")
    private String versionNbr;

}
